export const initState = {
    list:[]
}

//修改的reducer

export const reducer = (state,action)=>{
    switch(action.type){
        case "changeList":
            return{
                ...state,
                list:action.arr
            }
        default:
            return state
    }
}

//actions
export const actions = {
    changeList:(arr)=>({type:"changeList",arr})
}

// select
export const getList = state => state.list